package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"github.com/beego/beego/v2/server/web/context/param"
)

func init() {

    beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"] = append(beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"],
        beego.ControllerComments{
            Method: "DoLogin",
            Router: "/login",
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"] = append(beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"],
        beego.ControllerComments{
            Method: "UpdatePswd",
            Router: "/pswd/:pswdvalue",
            AllowHTTPMethods: []string{"put"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"] = append(beego.GlobalControllerRouter["classmates/controllers:ClassmatesController"],
        beego.ControllerComments{
            Method: "UpdateInfo",
            Router: "/updateInfo/mine",
            AllowHTTPMethods: []string{"put"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:RecordsController"] = append(beego.GlobalControllerRouter["classmates/controllers:RecordsController"],
        beego.ControllerComments{
            Method: "CanyuChoujiang",
            Router: "/canyuChoujiang",
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:RecordsController"] = append(beego.GlobalControllerRouter["classmates/controllers:RecordsController"],
        beego.ControllerComments{
            Method: "ClearChoujiang",
            Router: "/clearChoujiang",
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:RecordsController"] = append(beego.GlobalControllerRouter["classmates/controllers:RecordsController"],
        beego.ControllerComments{
            Method: "LoadPersons",
            Router: "/loadPersons",
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:RecordsController"] = append(beego.GlobalControllerRouter["classmates/controllers:RecordsController"],
        beego.ControllerComments{
            Method: "GetAll",
            Router: "/query",
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["classmates/controllers:RecordsController"] = append(beego.GlobalControllerRouter["classmates/controllers:RecordsController"],
        beego.ControllerComments{
            Method: "SignIn",
            Router: "/signIn",
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

}
